<template>

	<view class="content">
		<NavCustom>
			<template v-slot:text>
				{{title}}
			</template>
		</NavCustom>
		<view class="seach">
			<uni-easyinput class="uni-mt-5" suffixIcon="search" v-model="value" placeholder="右侧图标"
				@iconClick="iconClick"></uni-easyinput>
		</view>

		<view class="uni-container">
			
		</view>
	</view>
</template>

<script>
	import NavCustom from '@/Components/navCustom/navCustom.vue'
	import {
		http
	} from '@/utils/http.js'
	export default {
		components: {
			NavCustom
		},

		data() {
			return {
				title: '设备号查询',
				// 设备号
				value: '202406140013'
			};
		},
		methods: {
			async request(){
				const res = await http({
					method: 'POST',
					url: '/app/entry/data/list',
					data: {
						"app_id": "6535ca899a0316521401ddac",
						"entry_id": "649c0005ae6e97000860bed5",
						"fields": [
							"_widget_1710380829988"
						],
						"filter": {
							"cond": [{
								"field": "_widget_1699250273748",
								"type": "string",
								"method": "eq",
								"value": this.value
							}]
						},
					}
				})
				console.log(res, '返回的数据')
				
				
				
				const data = await http({
					method: 'POST',
					url: '/workflow/instance/get',
					data: {
						"instance_id": res.data.data[0]._id,
						"tasks_type": 1
					}
				})
				console.log(data)
			}
		},
		mounted() {
			this.request()
		}
	}
</script>

<style lang="scss">
	.seach {
		padding: 20rpx 20rpx;
	}
</style>